#include <unistd.h>
#include <stdio.h>
#include <string.h>

int main(){
  char buf[10] = {0};
  read(0, buf, 3);
  printf("%s\n", buf);
  memset(buf, 0, 9);
  
  read(1, buf, 3);
  printf("%s\n", buf);
  memset(buf, 0, 9);
  
  read(2, buf, 3);
  printf("%s\n", buf);

  return 0;
}
